package com.wjv.example.service;

import com.wjv.example.common.entity.ResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>Title: PaymentFeignService</p>
 * <p>Company:misspao </p>
 *
 * @author: wjv
 * @Date: Create in 13:30 2020/9/24
 * @Description:
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-PAYMENT")
public interface PaymentFeignService {

    /**
     * 参数 @RequestParam("id") 不能丢。。。
     * @param id
     * @return
     */
    @GetMapping(value = "/payment/getPayment")
    ResultInfo getPayment(@RequestParam("id") int id);
}
